package com.java.base.javabase.thread.start;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.Callable;

public class CallableStart implements Callable {

    @Override
    public List<String> call() throws Exception {
        int second = new Random().nextInt(10) + 1 ;
        List<String> result = new ArrayList<>();
        result.add(Thread.currentThread().getName() + second);
        return result;
    }
}
